# Maintainer: Umar Getagazov <umar@handlerug.me>
pkgname=treecat
_commit=d277aed99eb48eef891b76916a61029989c41d2d
pkgver=1.0.2_git20231128
pkgrel=1
pkgdesc="Serialize a directory to a tree diagram, and vice versa"
url="https://sr.ht/~autumnull/treecat"
arch="x86_64 aarch64 riscv64" # Hare
license="WTFPL"
makedepends="hare haredo scdoc"
subpackages="$pkgname-doc"
source="$pkgname-$_commit.tar.gz::https://git.sr.ht/~autumnull/treecat/archive/$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"

build() {
	haredo
}

check() {
	haredo test
}

package() {
	PREFIX="$pkgdir"/usr haredo install
}

sha512sums="
dee6d7eaf5fe5d326cf424a3c6d28ec377970b97fc5dab37dcb410c7dd0551d3625617e85d879317a36b8d24b04044f1ce5bce47ae376f8abb211a7788ecca30  treecat-d277aed99eb48eef891b76916a61029989c41d2d.tar.gz
"
